package com.ang.structural.bridge;

import org.junit.Test;

/**
 * @author ANG.YU
 * @date 2020-09-22 14:18
 */
public class TestBridge {
    @Test
    public void drawTest() {
        Rectangle rectangle = new Rectangle();
        rectangle.setColor(new Red());
        rectangle.draw();

        Round round = new Round();
        round.setColor(new Blue());
        round.draw();

        Triangle triangle = new Triangle();
        triangle.setColor(new Yellow());
        triangle.draw();
    }
}
